#include <iostream>
#include "StdThreadPool.h"
#include <unistd.h>



void *threadHandler(void *arg)
{
    long num = (long)arg;
    std::cout<<"我是线程\n"<<std::endl;
    sleep(1);
    return NULL;
}

int main()
{
    StdThreadPool p(20,10,15,2);

    for(long i = 0; i < 21; i++)
    {
        p.AddPoolTask(threadHandler,(void*)i);
    }
    sleep(2);
    return 0;
}